package pl.ajasinski.unittest;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public  class LoginPage extends Page {
	public LoginPage(WebDriver driver)
	{super (driver);
		
	}
	public HomePage login(String login, String password){
		insertTekst(By.name("login"), "123");
		insertTekst(By.name("password"), "456");
		click(By.name("commit"));
		return new HomePage();
	}
}
